<?php
return array(
    /** site confiruation **/
    'site_config' => array(
        'site' => array(
            'site_name' => 'PrototypeTest',
            'site_describe' => '',
            'site_email' => '',
        ),
        'page' => array(
            'page_size' => 10,
        ),
        'comment' => array(
            'comment_allow' => 'on',
            'comment_author_require' => 'on',
            'comment_email_require' => 'on',
            'comment_page_size' => 30,
            'comment_page_order' => 'old-new',
            'comment_audit' => true,
            'comment_filter_words' => '',
        ),
        'thumb' => array(
            'thumb' => 'on',
            'thumb_maxwidth' => 150,
            'thumb_maxheight' => 150,
        ),
    ),

    //兼容模式以运行于nginx
    'url_model' => 3,

    /** lang configuration **/
    'lang_cache_on' => false,
    'primary_lang' =>' zh-cn',
    'lang_switch_on' => true,

    /** miscellaneous configuration **/
    'token_on' => false,
    'app_debug' => !true,
    'log_record' => !true,
    'log_record_level' => array('SQL','ERR'),

    /** database configuration **/
    'db_name' => 'royalcms',
    'db_user' => 'root',
    'db_pwd' => 'yk',
    'db_prefix' => 'ya_',
    'db_host' => 'localhost',
    'db_port' => '3306',
    'db_charset' => 'utf8',
    'db_type' => 'mysql',

    /** default theme  **/
    'default_theme' => 'admin',

    //RBAC设置
    'user_auth_on' => true,
    'user_auth_key' => 'Royal_2341',/*@todo when install,random generate suffix*/
    'user_auth_type' => 1,
    'user_auth_gateway' => '/Public/popedom',
    'admin_role' => array('systemAdmin','系统管理员'),
    'require_auth_module' => 'pContent,pUser',

);
